/**
 * 
 */
package com.hera.process.config.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hera.process.config.dao.JdbcCoreDao;
import com.hera.process.config.service.MetadataManagerService;

/**
 * @author cmontes
 *
 */
@Service("metadataManagerService")
public class MetadataManagerServiceImpl implements MetadataManagerService {
	
	@Autowired
	private JdbcCoreDao jdbcCoreDao;

	
	@Override
	public Map<String, Object> selectById(Long identity, List<Object> arrFields,
			String schema, String tableName) {
		
		return jdbcCoreDao.selectById(identity, arrFields, schema, tableName);
	}

	
	@Override
	public List<Map<String, Object>> selectList(String where,
			String[] arrFields, Object[] params, String schema, String tableName) {
		
		return jdbcCoreDao.selectList(where, arrFields, params, schema, tableName);
	}

	
	@Override
	public void updateById(Long identity, Map<String, Object> entity,
			String schema, String tableName) {
		
		jdbcCoreDao.updateById(identity, entity, schema, tableName);
	}

	
	@Override
	public void insert(Map<String, Object> entity, String schema,
			String tableName) {
		
		jdbcCoreDao.insert(entity, schema, tableName);
	}

	
	@Override
	public void deleteById(Long identity, String schema, String tableName) {
		
		jdbcCoreDao.deleteById(identity, schema, tableName);
	}

}
